package BLL;

import DAL.MarksDAL;
import Entities.TblMarks;
import java.util.List;

public class MarksBLL {

    public MarksDAL dalObj;

    public boolean add(TblMarks obj) throws Exception {
        dalObj = new MarksDAL();
        return dalObj.add(obj);
    }

    public boolean update(TblMarks obj) throws Exception {
        dalObj = new MarksDAL();
        return dalObj.update(obj);
    }

    public TblMarks getById(int id) throws Exception {
        dalObj = new MarksDAL();
        return dalObj.getById(id);
    }

    public List<TblMarks> getAll() throws Exception {
        dalObj = new MarksDAL();
        return dalObj.getAll();
    }
}
